package com.zheng.hr.dao.model;

import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2018-04-19
 */
@TableName("hr_train")
public class HrTrain extends BaseEntity {
	public static final Integer NORMAL = 0;
	public static final Integer DELETE = 1;
	public static final Integer CANCEL = 2;
	public static final Integer FINISH = 3;
    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("train_name")
	private String trainName;
	@TableField("begin_time")
	private Date beginTime;
	@TableField("join_info")
	private String joinInfo;
	@TableField("train_place")
	private String trainPlace;
    /**
     * 培训详情
     */
	@TableField("train_summary")
	private String trainSummary;
	private String remark;
	private String attachment;
    /**
     * 培训状态 0正常 1已删除
     */
	private Integer status;
    /**
     * 外部培训讲师姓名
     */
	@TableField("train_instructor")
	private String trainInstructor;
    /**
     * 内部培训讲师id
     */
	@TableField("train_instructor_id")
	private Integer trainInstructorId;
    /**
     * 是否为内部培训，1内部，0外部
     */
	@TableField("is_inside_instructor")
	private Boolean isInsideInstructor;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTrainName() {
		return trainName;
	}

	public void setTrainName(String trainName) {
		this.trainName = trainName;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public String getJoinInfo() {
		return joinInfo;
	}

	public void setJoinInfo(String joinInfo) {
		this.joinInfo = joinInfo;
	}

	public String getTrainPlace() {
		return trainPlace;
	}

	public void setTrainPlace(String trainPlace) {
		this.trainPlace = trainPlace;
	}

	public String getTrainSummary() {
		return trainSummary;
	}

	public void setTrainSummary(String trainSummary) {
		this.trainSummary = trainSummary;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAttachment() {
		return attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getTrainInstructor() {
		return trainInstructor;
	}

	public void setTrainInstructor(String trainInstructor) {
		this.trainInstructor = trainInstructor;
	}

	public Integer getTrainInstructorId() {
		return trainInstructorId;
	}

	public void setTrainInstructorId(Integer trainInstructorId) {
		this.trainInstructorId = trainInstructorId;
	}

	public Boolean getInsideInstructor() {
		return isInsideInstructor;
	}

	public void setInsideInstructor(Boolean isInsideInstructor) {
		this.isInsideInstructor = isInsideInstructor;
	}
	@Override
	protected Serializable pkVal() {
		return id;
	}
	@Override
	public String toString() {
		return "HrTrain{" +
			"id=" + id +
			", trainName=" + trainName +
			", beginTime=" + beginTime +
			", joinInfo=" + joinInfo +
			", trainPlace=" + trainPlace +
			", trainSummary=" + trainSummary +
			", remark=" + remark +
			", attachment=" + attachment +
			", ctime=" + ctime +
			", status=" + status +
			", trainInstructor=" + trainInstructor +
			", trainInstructorId=" + trainInstructorId +
			", isInsideInstructor=" + isInsideInstructor +
			"}";
	}
}
